import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

const routes = [{
    path: "/",
    name: "Home",
    component: () => import( /* webpackChunkName: "Home" */ "../views/Home.vue")
  },
  {
    path: "/page1",
    name: "Page1",
    component: () =>
      import( /* webpackChunkName: "page1" */ "../views/Page1.vue")
  },
  {
    path: "/page2",
    name: "Page2",
    component: () =>
      import( /* webpackChunkName: "page2" */ "../views/Page2.vue")
  }
];

const router = new VueRouter({
  routes
});

export default router;